﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BestPrice.Common
{
#if NETFX_CORE
    [Windows.Foundation.Metadata.WebHostHidden]
#endif
    public class Product : BaseEntity
    {
        private int _ID;
        public int ID
        {
            get { return _ID; }
            set
            {
#if !NETFX_CORE
                _ID = value;
#endif
#if NETFX_CORE
                this.SetProperty(ref this._ID, value);
#endif
            }
        }

        private String _Title;
        public String Title
        {
            get { return _Title; }
            set
            {
#if !NETFX_CORE
                _Title = value;
#endif
#if NETFX_CORE
                this.SetProperty(ref this._Title, value);
#endif
            }
        }

        private String _Description;
        public String Detail
        {
            get { return _Description; }
            set
            {
#if !NETFX_CORE
                _Description = value;
#endif
#if NETFX_CORE
                this.SetProperty(ref this._Description, value);
#endif
            }
        }

        private String _Price;
        public String Price
        {
            get { return _Price; }
            set
            {
#if !NETFX_CORE
                _Price = value;
#endif
#if NETFX_CORE
                this.SetProperty(ref this._Price, value);
#endif
            }
        }

        private String _ImageUrl;
        public String ImageUrl
        {
            get { return _ImageUrl; }
            set
            {
#if !NETFX_CORE
                _ImageUrl = value;
#endif
#if NETFX_CORE
                this.SetProperty(ref this._ImageUrl, value);
#endif
            }
        }

        private String _BaseUrl;
        public String BaseUrl
        {
            get { return _BaseUrl; }
            set
            {
#if !NETFX_CORE
                _BaseUrl = value;
#endif
#if NETFX_CORE
                this.SetProperty(ref this._BaseUrl, value);
#endif
            }
        }

        public Product(int id, String title, String desc, String price, String imgUrl, String baseUrl)
        {
            this._Title = title;
            this._Description = desc;
            this._Price = price;
            this._ImageUrl = imgUrl;
            this._ID = id;
            this._BaseUrl = baseUrl;
        }
    }
}
